<template>
  <ant-modal modalWidth="878" modalHeight="650" :visible="open" :modal-title="formTitle" :adjust-size="true" @cancel="cancel" :footer="null">
    <a-row slot="content">
      <approve-record :itemId="itemId" :statusOptions="statusOptions" />
    </a-row>
  </ant-modal>
</template>

<script>
import AntModal from '@/components/pt/dialog/AntModal'
import ApproveRecord from '@views/platform/approverecord/index'
export default {
  name: 'ApproveRecordTableModal',
  props: {
    itemId: {
      type: String,
      required: false
    },
    statusOptions: {
      type: Array,
      required: false
    }
  },
  components: {
    AntModal,
    ApproveRecord
  },
  data() {
    return {
      open: false,
      closeDialog: true,
      loading: false,
      disabled: false,
      formTitle: '审核记录'
    }
  },
  methods: {
    handleTable() {
      this.open = true
    },
    // 取消按钮
    cancel() {
      this.$emit('close')
      this.open = false
    }
  }
}
</script>
